//
//  moneyTableViewCell.m
//  EasyToTesco
//
//  Created by ym on 16/3/28.
//  Copyright © 2016年 Jack. All rights reserved.
//

#import "moneyTableViewCell.h"
#define WIDTH [[UIScreen mainScreen] bounds].size.width
#define NORMWIDTH [[UIScreen mainScreen] bounds].size.width / 375
#define HEIGHT [[UIScreen mainScreen] bounds].size.height
#define NORMHEIGHT [[UIScreen mainScreen] bounds].size.height / 667
#define FRAME [[UIScreen mainScreen] bounds]
@implementation moneyTableViewCell




- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.number  = [[UILabel alloc] init];
        [self.contentView addSubview:self.number];
        //  self.cover_s.backgroundColor = COLOUR;
        
        self.type = [[UILabel alloc] init];
        [self.contentView addSubview:self.type];
        // self.name.backgroundColor = [UIColor redColor];
        
        self.onLine = [[UILabel alloc] init];
        [self.contentView addSubview:self.onLine];
        // self.name.backgroundColor = [UIColor redColor];

        self.name = [[UILabel alloc] init];
        [self.contentView addSubview:self.name];
        // self.name.backgroundColor = [UIColor redColor];

        self.phone = [[UILabel alloc] init];
        [self.contentView addSubview:self.phone];
        // self.name.backgroundColor = [UIColor redColor];

        self.address = [[UILabel alloc] init];
        [self.contentView addSubview:self.address];
        // self.name.backgroundColor = [UIColor redColor];

        
        
        
        
    }
    
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.number.frame = CGRectMake(5*NORMWIDTH, 5*NORMHEIGHT, 50*NORMWIDTH, 50*NORMHEIGHT);
    self.type.frame = CGRectMake(5*NORMWIDTH,55*NORMHEIGHT, 50*NORMWIDTH, self.contentView.frame.size.height - 10
                                  );
    
    
    
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
